package fr.umlv.m2.jee.portailEtudiant.persistence.DAO;

import fr.umlv.m2.jee.portailEtudiant.persistence.ITdDAO;

import java.util.List;

import fr.umlv.m2.jee.portailEtudiant.framework.dao.hibernate.AbstractHibernateDAO;


import fr.umlv.m2.jee.portailEtudiant.persistence.Td;
import org.springframework.stereotype.Repository;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 07/02/11
 * Time: 01:36
 * To change this template use File | Settings | File Templates.
 */
@Repository("hibernateTdDAO")
public class HibernateTdDAO extends  AbstractHibernateDAO<Long, Td> implements ITdDAO {

    public List<Td> findByTdsId(long id) {
            return super.findByQuery("FROM Td b WHERE b.id ='"+id+"'");
    }
}
